From: Florian Müllner Date: Fri, 3 Jan 2020 12:06:08 +0000 (+0100) Subject: keyboard: Fix input-source switcher alignment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~274 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=42af514c51057112d903b48f97e1fdcb1412553b;p=gnome-shell.git keyboard: Fix input-source switcher alignment More fallout from commit 104071acbd. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/916 --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index b5751023d..ae7acac34 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -117,11 +117,18 @@ class InputSourceSwitcher extends SwitcherPopup.SwitcherList { let box = new St.BoxLayout({ vertical: true }); let bin = new St.Bin({ style_class: 'input-source-switcher-symbol' }); - let symbol = new St.Label({ text: item.shortName }); + let symbol = new St.Label({ + text: item.shortName, + x_align: Clutter.ActorAlign.CENTER, + y_align: Clutter.ActorAlign.CENTER, + }); bin.set_child(symbol); box.add_child(bin); - let text = new St.Label({ text: item.displayName }); + let text = new St.Label({ + text: item.displayName, + x_align: Clutter.ActorAlign.CENTER, + }); box.add_child(text); this.addItem(box, text);